<?
//******************************************************************************
//******************************************************************************
//***    Page d'acceuil de sombre destin.                                    ***
//***          Par Khiguard.                                                 ***
//***                 Le 06-01-2003.                                         ***
//******************************************************************************
//******************************************************************************


TITRE("Description des races");
echo"<BR><BR>";
       
require ($tmppath."protect/connect.php");
 echo "<table width=\"95%\" border=\"1\" align=\"center\" cellspacing=\"0\" bordercolor=\"#000000\">";
   echo"<tr><td whidth=\"25\" background=\"templates/default/FondS.jpg\"><div align=\"center\">Race</a></div></td>
       <td width=\"25\" background=\"templates/default/FondS.jpg\"><div align=\"center\">Classement</div></td>
       <td width=\"50\" background=\"templates/default/FondS.jpg\"><div align=\"center\">Nom commun</div></td>
       <td width=\"10%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">Pop depart</div></td>
       <td width=\"5%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">T.N.</div></td>
       <td width=\"5%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">T.M.</div></td>
       <td width=\"5%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">For</div></td>
       <td width=\"5%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">Int</div></td>
       <td width=\"5%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">Pou</div></td>
       <td width=\"5%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">End</div></td>
       <td width=\"5%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">Agi</div></td>
       <td width=\"5%\" background=\"templates/default/FondS.jpg\"><div align=\"center\">Taille</div></td>
       </td>";

$query="SELECT race_id,race_name, race_sousname, race_realname, race_pop_ini, race_tn, race_tm , race_for, race_int, race_pou, race_end, race_agi, race_taille FROM urace where race_activer='o' order by race_name, race_sousname";
$resultat=mysql_query($query);
while ($forum =mysql_fetch_array($resultat) )
{


$lien="window.open('include_l.php', 'Description de race', 'scrollbars=no,status=no,top=0,left=0,width=450,height=500')";
$lien2="window.open('include_l.php?p=vis_race&raceid=$forum[0]', 'Abonnement', 'scrollbars=yes,status=no,top=0,left=0,width=420,height=500')";
IF ($var_tmp==0){
$bgr="background=\"templates/default/Fond.jpg\"";
$var_tmp=1;

}
ELSE{
$bgr="";
$var_tmp=0;

}


      echo"<tr>
       <td whidth=\"10%\" $bgr><div align=\"center\"><font size=\"2\"><a href=\"#\" onClick=\"$lien2\">$forum[1]</a></font></div></td>
       <td width=\"17%\" $bgr><div align=\"center\"><font size=\"2\">$forum[2]</font></div></td>
       <td width=\"17%\" $bgr><div align=\"center\"><font size=\"2\">$forum[3]</font></div></td>
       <td width=\"12%\" $bgr><div align=\"center\"><font size=\"2\">$forum[4]</font></div></td>
       <td width=\"5%\" $bgr><div align=\"center\"><font size=\"2\">$forum[5]</font></div></td>
       <td width=\"5%\" $bgr><div align=\"center\"><font size=\"2\">$forum[6]</font></div></td>
       <td width=\"5%\" $bgr><div align=\"center\"><font size=\"2\">$forum[7]</font></div></td>
       <td width=\"5%\" $bgr><div align=\"center\"><font size=\"2\">$forum[8]</font></div></td>
       <td width=\"5%\" $bgr><div align=\"center\"><font size=\"2\">$forum[9]</font></div></td>
       <td width=\"5%\" $bgr><div align=\"center\"><font size=\"2\">$forum[10]</font></div></td>
       <td width=\"5%\" $bgr><div align=\"center\"><font size=\"2\">$forum[11]</font></div></td>
       <td width=\"5%\" $bgr><div align=\"center\"><font size=\"2\">$forum[12]</font></div></td>
       </td>";
}
echo "</table>";
mysql_close;


?>
